﻿{% extends 'wap/base.html' %}
{% load humanize %}
{% block title %}最新评论{% endblock %}

{% block content %}
{% for comment in comments.object_list %}
<div class='comment'>
    {{comment.name}} 在
    <a href='{{comment.archive.get_absolute_url}}'>{{comment.archive.title}}</a>
    留言:
    <div class='date'>{{comment.date|naturalday}} {{comment.date|date:"H:i"}}</div>
    <p>
    {{comment.content}}
    </p>
    
</div>
{% endfor %}
{% if comments.has_previous %}
<a href='/wap/comments?page={{comments.previous_page_number}}'>上一页</a>
{% endif %}
{% if comments.has_next %}
<a href='/wap/comments?page={{comments.next_page_number}}'>下一页</a>
{% endif %}
{% endblock %}

